<?php
/**
 * Users controller class
 */
class Address_ViewController extends Zend_Controller_Action
{
	/**
	 * view all categories
	 */
	public function indexAction()
	{
		$cat = new Address_Model_Category();
		$this->view->categories = $cat->fetchParentCategories();
	}
	
	public function addressListAction()
	{
		$address = new Address_Model_Address();		
		$this->view->addresses = $address->fetchAllByCategoryId($this->_getParam('category'));
	}
	
	/**
	 * view an address
	 */
	public function addressAction()
	{
		
	}
}
